package nsu.grandfinal;

import android.app.TabActivity;
import android.os.Bundle;
import android.widget.TabHost;

@SuppressWarnings("deprecation")
public class MainActivity extends TabActivity {
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		ClaTabHost thMain = new ClaTabHost(this, (TabHost) findViewById(android.R.id.tabhost));
		thMain.AddLayout(R.layout.searchlayout);
		thMain.AddLayout(R.layout.dblayout);
		thMain.AddLayout(R.layout.tiplayout);
		thMain.AddTab("tab1", "위치검색", -1, R.id.tab1, this, Tab1.class);
		thMain.AddTab("tab3", "저장목록", -1, R.id.tab2, this, Tab2.class);
		thMain.AddTab("tab2", "TIPS", -1, R.id.tab3, this, Tab3.class);
	}
}